package health.lm.com.mine.present;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.GrowthIntegralActivity;
import health.lm.com.mine.entity.GrowthIntegralEntity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 成长记录
 */

public class GrowthIntegralPresenter extends XPresent<GrowthIntegralActivity> {

    public void getData() {
        MineModel.getInstance().jifen( new SimpleCallBack<GrowthIntegralEntity>() {
            @Override
            public void onSuccess(GrowthIntegralEntity entity) {

                if (hasV()) {
                    getV().getData(entity);
                }
            }

        });

    }
}
